function LoginAuth(OriginConponent) {
  return props => {
    // 从localstorage获取token
    const token = localStorage.getItem('token')
    if(token) {
      return <OriginConponent {...props}></OriginConponent>
    } else {
      return <div>请先登录</div>
    }
  }
}

export default LoginAuth